import request from '@/utils/request'

// 查询城市更新（库存）列表
export function listCity_update_stock(query) {
  return request({
    url: '/data_upload/city_update_stock/list',
    method: 'get',
    params: query
  })
}

// 查询城市更新（库存）详细
export function getCity_update_stock(commodityId) {
  return request({
    url: '/data_upload/city_update_stock/' + commodityId,
    method: 'get'
  })
}

// 新增城市更新（库存）
export function addCity_update_stock(data) {
  return request({
    url: '/data_upload/city_update_stock',
    method: 'post',
    data: data
  })
}

// 修改城市更新（库存）
export function updateCity_update_stock(data) {
  return request({
    url: '/data_upload/city_update_stock',
    method: 'put',
    data: data
  })
}

// 删除城市更新（库存）
export function delCity_update_stock(commodityId) {
  return request({
    url: '/data_upload/city_update_stock/' + commodityId,
    method: 'delete'
  })
}
